﻿#ifndef KNOWLEDGEBASE_H
#define KNOWLEDGEBASE_H

#include <QtGui>
QT_BEGIN_NAMESPACE
class QDirModel;
QT_END_NAMESPACE

namespace Ui {
    class KnowledgeBase;
}

class KnowledgeBase : public QWidget
{
    Q_OBJECT

public:
    explicit KnowledgeBase(QWidget *parent = 0);
    ~KnowledgeBase();

signals:
    void userSelectedPath(QString str);

private:
    Ui::KnowledgeBase *ui;

public:
    void getTreeFromLocalDir();
private:
    QFileSystemModel *model;

private slots:
    void on_treeViewCategory_clicked(QModelIndex index);
};

#endif // KNOWLEDGEBASE_H
